<p>
  <%= label_tag(:name, "Name") %>
  <%= f.text_field :name %>
</p>
<p>
  <% code_array = {
  "100m" => 'A',
  "200m" => 'B',
  "400m" => 'C',
  "800m" => 'D',
  "1000m" => 'E',
  "1500m" => 'F',
  "跳高" => 'G',
  "跳远" => 'H',
  "实心球" => 'I',
  "铅球" => 'J',
  "铁饼" => 'K',
  "标枪" => 'L'
  } %>
  <%= label_tag(:code, "Code") %>
  <%= f.select :code, code_array %>
</p>
<p>  
  <%= label_tag(:enabled, "Enabled") %>
  <%= f.check_box(:enabled) %>
</p>
<p>
  <%= label_tag(:description, "Description") %>
  <%= f.text_area :description, :size => '24*60' %>
</p>